//
//  CJMgmtFormCell.swift
//  ANOA
//
//  Created by 邱仙凯 on 2022/4/11.
//  Copyright © 2025 aowang. All rights reserved.
//

import UIKit
 
class CJMgmtFormCell: GlobalDetailCell  {
 
   var item1 :KSFormHItem = {
       let appe = KSFormHAppear()
            .itembgColor(TempDetBg)
          .textBgColor(TempDetBg)
       let v = KSFormHItem(title: "出价编号",appearance:appe)
       return v
   }()
    var itemJpPrice :KSFormHItem = {
        let appe = KSFormHAppear()
            .itembgColor(TempDetBg)
           .textBgColor(TempDetBg)
        let v = KSFormHItem(title: "竞拍成交价",appearance:appe )
        v.disabled = true
         return v
    }()
   var item2 :KSFormHItem = {
       let appe = KSFormHAppear()
           .itembgColor(TempDetBg)
          .textBgColor(TempDetBg)
       let v = KSFormHItem(title: "成交价",appearance:appe )
         return v
   }()
   var item3 :KSFormHItem = {
       let appe = KSFormHAppear()
           .itembgColor(TempDetBg)
          .textBgColor(TempDetBg)
       let v = KSFormHItem(title: "竞拍数量",appearance:appe )
       v.disabled = true
       return v
   }()
   var item4 :KSFormHItem = {
       let appe = KSFormHAppear()
           .itembgColor(TempDetBg)
          .textBgColor(TempDetBg)
           .twoDemiInput(true)
       let v = KSFormHItem(title: "成交数量*",appearance:appe )
        return v
   }()
   var item5 :KSFormHItem = {
       let appe = KSFormHAppear()
           .itembgColor(TempDetBg)
          .textBgColor(TempDetBg)
        let v = KSFormHItem(title: "联系人",appearance:appe )
       v.disabled = true
        return v
   }()
   var item6 :KSFormHItem = {
       let appe = KSFormHAppear()
           .itembgColor(TempDetBg)
          .textBgColor(TempDetBg)
         let v = KSFormHItem(title: "联系方式",appearance:appe )
       v.disabled = true
        return v
   }()
   
    var item7 :KSFormHItem = {
        let appe = KSFormHAppear()
             .itembgColor(TempDetBg)
           .textBgColor(TempDetBg)
         let v = KSFormHItem(title: "出价单位",appearance:appe )
        v.disabled = true
         return v
    }()
 
    var item8 :KSFormHItem = {
        let appe = KSFormHAppear()
             .itembgColor(TempDetBg)
           .textBgColor(TempDetBg)
         let v = KSFormHItem(title: "出价说明",appearance:appe )
        v.disabled = true
         return v
    }()
 
   var one:CJClientInfo? {
       didSet {
                self.configDataSource()
 
       }
   }
   
   func configDataSource() {
       
       item1.setVal(one!.zRecordNo)
       itemJpPrice.setVal(one!.zJpPrice)
       item2.setVal(one!.zPrice)
        item3.setVal(one!.zBidNum)
       item4.setVal(one!.zZbNum)
       item5.setVal(one!.zName)
       item6.setVal(one!.zTel)
       item7.setVal(one!.zTbCompany)
       item8.setVal(one!.zContent)
 
       
 
   }
   
   func configView() {
       itemBg.add(item1).add(itemJpPrice)
           .add(item2)
           .add(item3)
           .add(item4)
           .add(item5)
           .add(item6).add(item7).add(item8) 

   }
  
   
   
   override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
       super.init(style: style, reuseIdentifier: reuseIdentifier)
       self.selectionStyle = .none
        self.configView()
   }
   
   required init?(coder: NSCoder) {
       fatalError("init(coder:) has not been implemented")
   }
   
   override func setSelected(_ selected: Bool, animated: Bool) {
       super.setSelected(selected, animated: animated)
       
       // Configure the view for the selected state
   }
   
   
   
   
}
